<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    <title>JFinal-基本增删改查 Blog表单</title>
  <jsp:include page="../header.jsp"></jsp:include>
  <div class="container" style="background: #fff;">
  <div class="page-header">
  <h1>JFinal Blog CURD案例 FORM页面</h1>
  </div>
  <div class="row mainRow">
  <div class="col-lg-6 col-md-6 col-sm-6">
   <form  class="form-horizontal" role="form"  action="/blog/save" method="post" enctype="multipart/form-data">
   <input type="hidden" name="blog.id" value="${blog.id }">
   	<div class="form-group">
			    <label  class="col-sm-2 control-label">封面图</label>
			    <div class="col-sm-10">
			      <input type="file" name="img">
			    </div>
			  </div>
   	<div class="form-group">
			    <label  class="col-sm-2 control-label">标题</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" maxlength="50"  value="${blog.title }" name="blog.title" placeholder="填写blog标题">
			    </div>
			  </div>
   	<div class="form-group">
			    <label  class="col-sm-2 control-label">内容</label>
			    <div class="col-sm-10">
			      <textarea class="form-control" style="height: 200px;" maxlength="255" name="blog.content">${blog.content }</textarea>
			    </div>
			  </div>
   	
   	<button type="submit"  class="btn btn-primary btn-lg pull-right">提交Form</button>
   	
   </form>
   </div>
 <jsp:include page="../qrcode.jsp"></jsp:include>
  </div>
  </div>
  <jsp:include page="../footer.jsp"></jsp:include>